home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
600 Games
/
600games.iso
/
Nave
/
spaceambush.swf
/
scripts
/
frame_286
/
PlaceObject2_242_26
/
CLIPACTIONRECORD onClipEvent(mouseMove).as
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2007-03-12
|
333 b
|
17 lines
onClipEvent(mouseMove){
x = this._xmouse;
y = this._ymouse * -1;
angle = Math.atan(y / x) / 0.017453292519943295;
if(x < 0)
{
angle += 180;
}
if(x >= 0 && y < 0)
{
angle += 360;
}
_root.angletext = angle;
_root.tank.turret._rotation = angle * -1;
updateAfterEvent();
}